<?php $view->extend('template', 'content', array('title' => 'Admin Panel - ' . $title, 'use_ui' => true)); ?>

<?php if (isset($tips) && $tips):?>
<div class="message info">
<p><?php echo $tips?></p>
</div>
<?php endif;?>
<div class="col c9">
	<div class="row">
		<?php echo $view->getExtend('content')?>
	</div>
</div>

<div class="col c3">
	<h2><a href="<?php echo $view->url->linkTo('Admin','index')?>">Admin index</a></h2>
	<ul class="menu">
		<li><h4><a href="<?php echo $view->url->linkTo('Admin','accounts')?>">Accounts</a></h4></li>
		<li><h4><a href="<?php echo $view->url->linkTo('Admin','news')?>">News</a></h4></li>
		<li><h4><a href="<?php echo $view->url->linkTo('Admin','donation')?>">Donation</a></h4></li>
		<li><h4><a href="<?php echo $view->url->linkTo('Admin','forum')?>">Forum</a></h4></li>
	</ul>
	
	<h2>Realms</h2>
	<ul class="menu">
		<?php foreach($realms as $realm): ?>
			<li><h4><a href="<?php echo $view->url->linkTo('Admin','realm', array($realm->id))?>"><?php echo $realm->name?></a></h4></li>
		<?php endforeach; ?>
	</ul>
</div>
